package com.wn.controller;

import com.wn.entity.ClazzRoom;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class ClazzRoomController {
    @RequestMapping("/addClazzRoom")
    public ModelAndView addClazzRoom(ClazzRoom clazzRoom){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("clazzRoom", "传入的Map集合是："+clazzRoom);
        modelAndView.setViewName("oneToManyView");
        return modelAndView;
    }
}
